﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Jy123.Web.Manage.User
{
    public partial class LevelDefine :MgConfig// System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            Verify("LevelDefine.aspx");
        }

        protected void btnAlterClass_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            {
                Jy123.Model.User_Level mUserLevel = new Jy123.Model.User_Level();
                Jy123.BLL.User_Level bllUserLevel = new Jy123.BLL.User_Level();
                mUserLevel.LevelName = txtLevelName.Text;
                mUserLevel.RequirMoney = decimal.Parse(txtRequirMoney.Text);
                mUserLevel.Description = txtDescription.Text;
                if (bllUserLevel.Add(mUserLevel) > 0)
                {
                    Response.Redirect("LevelDefine.aspx");
                }
            }
        }

    }
}
